how to convert dictionary to string in python